package cn.aran.service.impl;

import cn.aran.domain.Store;
import cn.aran.mapper.StoreMapper;
import cn.aran.service.IStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StoreServiceImpl implements IStoreService {
    @Autowired
    private StoreMapper storeMapper;

    @Override
    public void add(Store store) {

        storeMapper.add(store);
    }

    @Override
    public Store loadByProductId(Long id) {
        return storeMapper.loadByProductId(id);
    }

    @Override
    public void remove(Long id) {
        storeMapper.remove(id);
    }
}
